<?php

namespace app\home\controller\store;

use app\home\controller\AuthController;
use repositories\OrderRepository;
use services\MiniProgramService;
use services\WechatService;
use basic\BaseModel;
use services\CacheService;
use services\UtilService as Util;
use services\JsonService as Json;
use think\facade\Db;
use think\facade\Route as Url;
use services\FormBuilder as Form;
use app\home\model\user\User;
use app\home\model\user\UserBill;
use app\home\model\order\StoreOrder as StoreOrderModel;

/**
 * 评价部分
 * Class StoreProductReply
 * @package app\home\controller\order
 */
class StoreProductReply extends AuthController
{
    /**
     * 获取首页的
     */
    public function index()
    {
        $product_id = input('product_id');
        if (!$product_id) $product_id = 0;
        $this->assign("is_layui", 0);
        $this->assign("product_id", (int)$product_id);
        return $this->fetch();
    }

    /**
     * 获取所有的产品数据
     */
    public function get_product_imaes_list()
    {
        $where = Util::getMore([
            ["page", 1],
            ["limit", 10],
            ["title", ''],
            ["is_replay", ''],
            ["product_name", ''],
            ["product_id", 0]
        ]);
        return Json::successful();
    }
}